﻿/* ----------------------------------------------------------------------------
 * Copyright (c) Philip Stears 
 *
 * This source code is subject to terms and conditions of the Microsoft Public 
 * License (Ms-PL).
 * 
 * By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 * 
 * To request a copy of the Microsoft Public License, send a request by email
 * to license@connectbasic.net.
 *
 * This notice must not be removed from this software.
 * ---------------------------------------------------------------------------- */

namespace ConnectBasic.ObjectModel
{
    using Microsoft.Scripting;

    /// <summary>
    /// Represents the VBA "Set" syntax for reference assignment.
    /// </summary>
    public class SetStatement : AssignStatement
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="SetStatement" /> class.
        /// </summary>
        /// <param name="statementSpan">The span of the assignment in the source text.</param>
        /// <param name="targetName">The target of the assignment (might be null if this is an error node).</param>
        /// <param name="expression">The expression which provides the value to assign (might be null if this is an error node).</param>
        public SetStatement(SourceSpan statementSpan, string targetName, ExpressionBase expression) 
            : base(statementSpan, targetName, expression)
        {
        }
    }
}
